const path = require("path");

module.exports = {
    entry: {
        "testcss": "./1.test_css.js",

    },
    output: {
        path: path.resolve(__dirname, "./dist"),
        filename: "[name].js",
    },
    module: {
        rules: [
            {
                test: /\.css$/,
                // use:["style-loader","css-loader"]
                use: [
                    "style-loader", {
                        loader: "css-loader",
                        options: {
                            url: true,
                            modules: true
                        }
                    }
                ]
            },
            {
                test:/\.less$/,
                use:["style-loader","css-loader","less-loader"]
            },
            {
                test:/\.scss$/,
                use:["style-loader","css-loader","sass-loader"]
            }
        ]
    }
}